+2008-03-22 Björn Lindqvist <bjourne@gmail.com>
+
+ * gtk/gtkexpander.c (gtk_expander_get_label):
+ gtk_label_get_label() should be used instead of
+ gtk_label_get_text(). (#353088, Xan Lopez)
+
2008-03-21 Tor Lillqvist <tml@novell.com>
Import the GDI+ gdk-pixbuf loaders for Windows by Dominic
* gtk_expander_get_label:
* @expander: a #GtkExpander
*
- * Fetches the text from the label of the expander, as set by
- * gtk_expander_set_label(). If the label text has not
- * been set the return value will be %NULL. This will be the
- * case if you create an empty button with gtk_button_new() to
- * use as a container.
+ * Fetches the text from a label widget including any embedded
+ * underlines indicating mnemonics and Pango markup, as set by
+ * gtk_expander_set_label(). If the label text has not been set the
+ * return value will be %NULL. This will be the case if you create an
+ * empty button with gtk_button_new() to use as a container.
*
* Return value: The text of the label widget. This string is owned
* by the widget and must not be modified or freed.
priv = expander->priv;
if (GTK_IS_LABEL (priv->label_widget))
- return gtk_label_get_text (GTK_LABEL (priv->label_widget));
+ return gtk_label_get_label (GTK_LABEL (priv->label_widget));
else
return NULL;
}